package com.nuoniu.sibanyun.service.finance.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.nuoniu.sibanyun.entity.finance.VAssetsLiabilitiesFormula;
import com.nuoniu.sibanyun.mapper.finance.VAssetsLiabilitiesFormulaMapper;
import com.nuoniu.sibanyun.service.finance.IVAssetsLiabilitiesFormulaService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 资产负债公式表 服务实现类
 * </p>
 *
 * @author 小啊刚
 * @since 2021-05-26
 */
@Service
public class VAssetsLiabilitiesFormulaServiceImpl extends ServiceImpl<VAssetsLiabilitiesFormulaMapper, VAssetsLiabilitiesFormula> implements IVAssetsLiabilitiesFormulaService {

    @Override
    public List<VAssetsLiabilitiesFormula> getByAlId(Long alId) {
        QueryWrapper wrapper = new QueryWrapper();
        wrapper.eq("al_id", alId);
        return list(wrapper);
    }

    @Override
    public List<VAssetsLiabilitiesFormula> getByAlIds(String ids, String accountingIds) {
        QueryWrapper wrapper = new QueryWrapper();
        wrapper.in("al_id", ids);
        wrapper.in("accounting_id", accountingIds);
        return list(wrapper);
    }
}
